Ext.define('appmod.controller.knowledge.logs.Startup', {
    extend: 'Ext.app.Controller',
    
   	stores:[
		'knowledge.logs.Page'
   	],   

    views: [
		'knowledge.logs.Dashboard'
    ],
	

    refs: [
		{ref: 'knowledgeLog', selector: 'knowledge-logs-dashboard'}
    ],	

    init: function() {
		var me = this;

    	me.control({
														
    	});
    },

	
	/**
	 * load main compont in this controller to framework container
	 */
	loadInitComp : function() {
		var me = this;
		// --- defined store ---
		var mainPanel = Ext.create('appmod.view.knowledge.logs.Dashboard' , {
			region : 'center',
			border:false,
			padding:'0 0 0 0'
		});
		return mainPanel;		
	},
	

	// --- use this app lication
	onLaunch:function(app) {
		var me = this;
		
		var dsLogs = me.getKnowledgeLogsPageStore();
		var knowledgeLogPanel = me.getKnowledgeLog();
		knowledgeLogPanel.bindStore(dsLogs);

	

	}
});